package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 购物车对象 super_cart_item
 * 
 * @author xjf
 * @date 2025-08-18
 */
public class SuperCartItem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 购物车id */
    @Excel(name = "购物车id")
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 商品id */
    @Excel(name = "商品id")
    private Long productId;

    /** 购买数量 */
    @Excel(name = "购买数量")
    private Long quantity;

    /** 勾选状态 0未选中 1已选中 */
    @Excel(name = "勾选状态 0未选中 1已选中")
    private Long checked;

    /** 商品状态：0正常/1已失效 */
    @Excel(name = "商品状态：0正常/1已失效")
    private Long status;

    /** 现价 */
    @Excel(name = "现价")
    private BigDecimal price;

    /** 活动截止时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm" , timezone = "GMT+8")
    @Excel(name = "活动截止时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date cutoffTime;

    /** 是否删除 0正常 1删除 */
    private Long del;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }

    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }

    public void setChecked(Long checked) 
    {
        this.checked = checked;
    }

    public Long getChecked() 
    {
        return checked;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }

    public void setCutoffTime(Date cutoffTime) 
    {
        this.cutoffTime = cutoffTime;
    }

    public Date getCutoffTime() 
    {
        return cutoffTime;
    }

    public void setDel(Long del) 
    {
        this.del = del;
    }

    public Long getDel() 
    {
        return del;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("productId", getProductId())
            .append("quantity", getQuantity())
            .append("checked", getChecked())
            .append("status", getStatus())
            .append("price", getPrice())
            .append("cutoffTime", getCutoffTime())
            .append("del", getDel())
            .toString();
    }
}
